padding css

89

/* Apply to all four sides */
padding: 1em;

/* vertical | horizontal */
padding: 5% 10%;

/* top | horizontal | bottom */
padding: 1em 2em 2em;

/* top | right | bottom | left */
padding: 5px 1em 0 2em;

/* Global values */
padding: inherit;
padding: initial;
padding: revert;
padding: revert-layer;
padding: unset;
.box {
  padding: <padding-top> || <padding-right> || <padding-bottom> || <padding-left>
}
h4 {
  background-color: green;
  padding: 10px;
}

h3 {
  background-color: blue;
  padding: 10px 5%;
}

Comments

Submit
0 Comments